package com.hlkj.baojin.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * @author lzx
 * 字典表
 */
@Document
@Getter
@Setter
public class Dict implements Serializable {

    @Id
    private String id;
    /**
     * 实体
     */
    private Set<String> keys;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 公司Id
     */
    private String companyId;

    /**
     * 说明
     */
    private String remark;

    public Dict(Set<String> keys, Integer type, String remark,String companyId) {
        this.keys = keys;
        this.type = type;
        this.remark = remark;
        this.companyId=companyId;
    }

    public Dict() {
    }
}
